<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>火锅阁红包疯抢中，手慢无！</title>
    <script type="text/javascript" src="{$_FANWE['site_root']}public/v1/js/jquery-1.8.3.min.js"></script>
</head>
<style>
	body{
		margin: 0;
	}
</style>
<body>
	<div style="background-image: url(./tpl/images/bgz.jpg);width: 100%;min-height: 700px;background-size: 100%;">
		<div style="width: 260px;height: 250px;"></div>
<div style="width: 220px;margin:auto;background-color: rgba(0,0,0,0.4);border-radius: 5px;padding: 30px 20px;">
<input placeholder="手机号" type="text" name="" class="mobile" style="width: 180px;height: 30px;border: none;border-radius: 2px;display:block;margin: auto;margin-bottom: 20px;">

<p class="but" type="submit" name="dosubmit"  style="color: #ffffff;width: 190px;line-height: 30px;text-align:center;border-radius: 2px;background-color: #ea990d;padding: 0;margin: auto;">提交</p>
<input type="hidden" name="uid" value="{$uid}">
</div>
</div>
</body>
</html>
<script type="text/javascript">

$(".but").click(function(){
	var mobile = $(".mobile").val();
	if(!mobile) alert("手机号不为空");

	$.ajax({
	   type: "POST",
	   url: "/misc.php?action=anlired_share",
	   data: {
	   	'dosubmit':1,
	   	'uid':{$uid},
	   	'mobile':mobile
	   },
	   success: function(msg){
	     	if(msg==1){
		   		alert(msg);
		   		window.location.href="/misc.php?action=anlired_share&download=download";
		   	}else{
		   		alert(msg);
		   	}
	   }
	});

});
window.alert = function(name){
        var iframe = document.createElement("IFRAME");
        iframe.style.display="none";
        iframe.setAttribute("src", 'data:text/plain,');
        document.documentElement.appendChild(iframe);
        window.frames[0].window.alert(name);
        iframe.parentNode.removeChild(iframe);
    };
window.confirm = function (message) {
            var iframe = document.createElement("IFRAME");
            iframe.style.display = "none";
            iframe.setAttribute("src", 'data:text/plain,');
            document.documentElement.appendChild(iframe);
            var alertFrame = window.frames[0];
            var result = alertFrame.window.confirm(message);
            iframe.parentNode.removeChild(iframe);
            return result;
    };
</script>